<style>
.setimg {position:absolute;top:0.5rem;right:0.5rem;padding:0.15rem 0.5rem;color:#fff;background-color:rgba(0,0,0,0.5);border-radius:1rem;}
.m-icon {position:absolute;top:1.3rem;right:0.5rem;color:#fff;}
.memlogo-area div {
    float: none;
}
</style>
<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
		<div style="width:100%;height:12rem">
			<img ng-src="{{tomedia(pagedata.pluginset.memberimg) || '../addons/jy_merchcmi/resource/images/mobile-hdp02.jpg'}}" style="display: block; width: 100%; height: 100%;">
		</div>
			<div style="margin:0.3rem 0.5rem;margin-top:-6rem">
					<div class="top" style="margin-bottom:0.3rem;z-index:108">
						<div class="c">
								<img style="width:3rem;height:3rem;border-radius:100%" src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/no-wxapp.png'}}"  />
						</div>
						<div class="c bold">{{pagedata.member.nickname}}</div>
					</div>
					<div class="memlogo-area" style="position: relative;margin-bottom:0.5rem;padding: 0.5rem;z-index:10;background:url({{tomedia(pagedata.pluginset.cardbg) || '../core/resource/images/cardbg.png'}}) no-repeat 100%">
						<div>
							<i class="icon icon-creditlevelfilling" style="font-size:0.85rem"> {{pagedata.merch.merchname || '商户名称'}}</i>
						</div>
						<div>
							<span class="bold" style="font-size:1.2rem">{{pagedata.member.sn}}</span>
						</div>
						<div class="c">
							<span class="bold" style="font-size:1.6rem">{{pagedata.member.leveltitle || 'VIP01'}}</span>
						</div>
						<div class="r">{{pagedata.member.mobile || '无手机号'}} <i class="icon icon-shuru" ng-click="access_json('core/member.set/')"></i></div>
						<div class="setimg" style="font-size:0.5rem">主卡</div>
						<i class="icon icon-erweima m-icon" style="font-size:2rem"></i>
					</div>
			</div>
			<div style="padding:0 0.5rem">
			<div class="fui-icon-group radius noborder col-3" style="background:#fff">
					<div class="fui-icon-col-sm external" ng-click="access_json('jy_merch/member.recharge/')" style="margin:0">
							<i class="icon icon-jifen bold" style="font-size:1.5rem"></i>
							<div class="subtitle" style="color: #666;">卡充值</div>
					</div>
					<div class="fui-icon-col-sm external" ng-click="access_json('jy_weishop/coupon.index/')" style="margin:0">
							<i class="icon icon-youhuiquan bold" style="font-size:1.5rem"></i>
							<div class="subtitle" style="color: #666;">券列表</div>
					</div>
					<div class="fui-icon-col-sm external" ng-click="access_json('core/member.set/')" style="margin:0">
							<i class="icon icon-set bold" style="font-size:1.5rem"></i>
							<div class="subtitle" style="color: #666;">完善资料</div>
					</div>
					<div class="fui-icon-col-sm external" ng-click="access_json('core/member.set/')" style="margin:0">
							<i class="icon icon-dianpu bold" style="font-size:1.5rem"></i>
							<div class="subtitle" style="color: #666;">门店列表</div>
					</div>
					<div class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_merch/order.list/')" style="margin:0">
							<i class="icon icon-dingdan bold" style="font-size:1.5rem"></i>
							<div class="subtitle" style="color: #666;">全部订单</div>
					</div>
					<div class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_merch/member.index/')" style="margin:0">
							<i class="icon icon-wo1 bold" style="font-size:1.5rem"></i>
							<div class="subtitle" style="color: #666;">我的</div>
					</div>
			</div>
			<div ng-if="pagedata.pluginset.no_order!=1" class="fui-cell-group radius fui-cell-click mod-group">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_merch/order.list/')">
								<div class="fui-cell-text bold">我的订单</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
							</a>
							<div class="fui-icon-group col-5 selecter">
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_merch/order.list//status=0')">
									<div class="badge" ng-if="pagedata.statics.status0>0">{{pagedata.statics.status0}}</div>
									<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
									<div class="text">待付款</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_merch/order.list//status=1')">
									<div class="badge" ng-if="pagedata.statics.status1>0">{{pagedata.statics.status1}}</div>
									<div class="icon icon-orange radius"><i class="icon icon-daifahuo"></i></div>
									<div class="text">待发货</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_merch/order.list//status=2')">
									<div class="badge" ng-if="pagedata.statics.status2>0">{{pagedata.statics.status2}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
									<div class="text">待收货</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_merch/order.list//status=3')">
									<div class="badge" ng-if="pagedata.statics.status3>0">{{pagedata.statics.status3}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-survey1"></i></div>
									<div class="text">待评价</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_merch/order.list//status=5')">
									<div class="badge" ng-if="pagedata.statics.status4>0">{{pagedata.statics.status4}}</div>
									<div class="icon icon-pink radius"><i class="icon icon-tuihuanhuo1"></i></div>
									<div class="text">退换货</div>
								</a>
							</div>
			</div>
			<div ng-if="pagedata.pluginset.no_days!=1" class="fui-cell-group radius fui-cell-click mod-group">
										<a class="fui-cell" href="javascript:;">
											<div class="fui-cell-text bold">
												我的日常
											</div>
											<div class="fui-cell-remark noremark"></div>
										</a>
										<div class="fui-icon-group col-4 selecter">
											<a ng-repeat="item in pagedata.pluginset.my_days" class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(item.action)">
												<div ng-if="item.action=='jy_merch/member.cart/' && pagedata.statics.cartnums>0" class="badge">{{pagedata.statics.cartnums}}</div>
												<div class="icon icon-green radius"><i class="icon {{item.icon}}"></i></div>
												<div class="text">{{item.title}}</div>
											</a>
										</div>
			</div>
			<div class="fui-cell-group radius fui-cell-click mod-group">
								<a ng-if="pagedata.pluginset.no_logs!=1" class="fui-cell" href="javascript:;">
											<div class="fui-cell-text bold">
												我的记录
												</div>
											<div class="fui-cell-remark" href="javascript:;" ng-click="access_json('jy_merch/member.credit_log/')"></div>
								</a>
								<div ng-if="pagedata.pluginset.no_logs!=1" class="fui-icon-group col-4 selecter">
											<a ng-repeat="item in pagedata.pluginset.my_logs" class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(item.action)">
												<div class="icon icon-green radius"><i class="icon {{item.icon}}"></i></div>
												<div class="text">{{item.title}}</div>
											</a>
											<a ng-if="pagedata.pluginset.no_others!=1" ng-repeat="item in pagedata.pluginset.my_memberbtn" class="fui-icon-col-sm" href="javascript:;" ng-click="access_json(item.action)">
												<div class="icon"><i class="icon {{item.icon}}"></i></div>
												<div class="text">{{item.title}}</div>
											</a>
								</div>
			</div>
			<div ng-if="pagedata.pluginset.my_memberbtn.length>0 && pagedata.pluginset.no_others!=1" class="fui-cell-group fui-cell-click mod-group">
					<a ng-repeat="item in pagedata.pluginset.my_memberbtn" class="fui-cell" href="javascript:;" ng-click="access_json(item.action)">
						<div class="fui-cell-icon"><i class="icon {{item.icon}}"></i></div>
						<div class="fui-cell-text">
								{{item.title}}
						</div>
						<div class="fui-cell-remark"></div>
					</a>
			</div>
			<div class="fixed-title" style="margin-top:1rem">
							 <span class="befirst spacing">
								 <span class="icon icon-fengexianzuo" style="font-size:2rem;color:#666"></span>
							 </span> 
							 <span class="title-text bold" style="color:#333;line-height:2rem">在该商户的余额记录</span> 
							 <span class="spacing">
								 <span class="icon icon-fengexianyou" style="font-size:2rem;color:#666"></span>
							 </span>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
			</div>
			<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-inner">
						<div class='title'>
							<span ng-show="item.is_add==1" class="label label-success">{{item.is_addtitle}}</span>
							<span ng-show="item.is_add!=1" class="label label-danger">{{item.is_addtitle}}</span>
							<span class="red" style="margin-left:0.3rem">{{item.fee}}</span>
							<span class="gray" style="font-size:0.6rem;"> {{item.type==1?'个':'元'}}</span>
						</div>
						<div class='gray'>{{item.createtime}}</div>
					</div>
					<div class='fui-list-angle'>
						<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.remark}}</span>
					</div>
				</div>
			</div>
			</div>
	</div>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行转账操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="转账金额" ng-model="pagedata.post.fee"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-mobilephone"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="收款人账户/手机号" ng-model="pagedata.post.mobile"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-password"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="支付密码" ng-model="pagedata.post.password"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'post')">确认转账</a>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showpassword" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showpassword=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行“设置支付密码”操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-password"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='password' class='fui-input' placeholder="支付密码" ng-model="pagedata.post.password"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'password')">确认提交</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/_setmobile')"></div>
<div ng-include="sys_html('_shopfooter')"></div>
<script>
scope.tool.get_list('jy_merch/member.credit_log/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_merch/member.credit_log/list/');
}
</script>